#!/bin/bash 
rm memorial.jar

cp -R src build
find build -name ".svn" -exec rm -Rfv {} \;
javac -verbose -Xlint:deprecation -classpath lib/js.jar -sourcepath src -d build `find src -name "*.java"`

cd build
jar xf ../lib/js.jar
jar cfmv ../memorial.jar ../etc/MANIFEST .
cd ..

rm -Rf build